package com.naiterui.ehp.bs.agent.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.naiterui.ehp.bp.bo.agent.CustomOrderInfoBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;

/**
 * b2c服务
 * 
 * @author yangfuya
 * @since 2022/2/16
 */
@FeignClient(name = "agentB2c", url = "${ehp.domain.b2c}", configuration = FeignConfiguration.class)
public interface IB2cFeignClient {

    /**
     * 订单详情
     * 
     * @param orderSn
     * @return
     * @throws BusinessException
     */
    @GetMapping("inner/cms/orders/getOrderDetailByOrderSn")
    CustomOrderInfoBO getOrderDetailByOrderSn(@RequestParam String orderSn) throws BusinessException;
}
